﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegulationsGrid.aspx.cs" Inherits="FantastPlatform.Community.UI.Message.RegulationsGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var rglg = new FantastPlatform.UI.RegulationsGrid({
            renderTo: 'rglg_div',
            url: '../Service/Regulations.aspx?Action=Search',
            border: false,
            width: tabs.getInnerWidth() - 2,
            height: tabs.getInnerHeight() - 2,
            tbar: [{
                text: '新增法律法规',
                iconCls: 'add',
                tooltip: {
                    text: '新增法律法规',
                    title: '新增法律法规',
                    autoHide: true
                },
                handler: function () { rglg.onAddRegulationsGridClick(); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                tooltip: {
                    text: '选择要编辑的法律法规',
                    title: '编辑法律法规',
                    autoHide: true
                },
                handler: function () { rglg.onEditRegulationsGridClick(); }
            }, '-', {
                text: '删除',
                iconCls: 'delete',
                tooltip: {
                    text: '删除选中的法律法规',
                    title: '删除法律法规',
                    autoHide: true
                },
                handler: function () { rglg.onDeleteRegulationsGridClick(); }
            }, '-', {
                text: '查询',
                iconCls: 'search',
                tooltip: {
                    text: '按照条件查询法律法规',
                    title: '查询法律法规',
                    autoHide: true
                },
                handler: function () { rglg.onSearchClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '重新更新列表内容',
                    title: '列表刷新',
                    autoHide: true
                },
                handler: function () { rglg.onUpdataRegulationsGridClick(); }
            }]
        });
        rglg.addListener('rowdblclick', function () { rglg.onEditRegulationsGridClick(); });
        rglg.onUpdataRegulationsGridClick();
    </script>
</head>
<body>
    <div id="rglg_div">
    </div>
</body>
</html>
